Latest update time:2020.12.25 Release notes
It is used by the institution to view whether the sub-merchant has been successfully created. The API is only used for a single sub-merchant check.
1. The {sub_mchid} in the URL refers to the Sub-merchant ID to be viewed.
Request URL:https://api.mch.weixin.qq.com/hk/v3/merchants/{sub_mchid}?sp_appid=parameter1&sp_mchid=parameter2
Request method: GET
Applicable object:Institutional mode
Certificate Requirements:Yes certificate is required.
API Rules: https://wechatpay-api.gitbook.io/wechatpay-api-v3
path This parameter needs to be set at the request URL
query This parameter needs to be set at the JSON for request body
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
Institution's Merchant ID | sp_appid | string(32) | Yes | path Merchant ID assigned to institutions by WeChat Pay Note:Only forInstitutional mode Example:wx8888888888888888 |
Organization APPID | sp_mchid | string(32) | Yes | path APPID corresponding to the Service Account applied for by the institution on the WeChat Official Accounts Platform Note:Only forInstitutional mode Example:3200000001 |
Sub-merchant ID | sub_mchid | string(32) | Yes | path Sub-merchant ID Example:20000100 |
https://api.mch.weixin.qq.com/hk/v3/merchants/{20000100}?sp_appid=wx8888888888888888&sp_mchid=1900000100
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
Returned status code | code | string(32) | Yes | Error code. See the error code list for the enumerated values. Example:INVALID_REQUEST |
Returned message | message | string(256) | Yes | Returned message. It indicates the reason for the error if not empty. Example:Parameter format verification error |
+ Detailed error description | detail | object | No | It is returned when code is PARAM_ERROR. Details will be described below. |
Name | Variable Name | Type | Required | Description |
---|---|---|---|---|
Submerchant id | sub_mchid | string(32) | Yes | Specifies the sub merchant ID assigned by WeChat Example:20000100 |
Full name of the sub-merchant | name | string(128) | Yes | The registration name of the sub-merchant Example:Merchant name |
Short name of the sub-merchant | shortname | string(64) | Yes | The short name of the sub-merchant, which is used for the display of WeChat order details and the successful payment page Example:Merchant shortname |
Company contact information | office_phone | string(32) | Yes | Contact information of the merchant, which will be displayed to the user after the payment. Example:075586010000 |
Registered Country or Region | merchant_country_code | string(3) | Yes | The country where the submerchant was registered ,see to CountryCode Example:344 |
Business category | business_category | int | Yes | Specifies the business category, please refer to the business ID list of WeChat payment. Please see Business Category Example:101 |
+ Contact information | contact | object | No | Contact information object details is listed below |
Merchant Type | merchant_type | string(10) | No | ENTERPRISE or INDIVIDUAL Example:ENTERPRISE |
Registration Certificate Number | registration_certificate_number | string(50) | No | Company registration document Number Example:5555-8888 |
Expiration Date of Registration Certificate | registration_certificate_date | string(10) | No | The expiration date of the company registration document. The value should be expire date or “PERMANENT” , “N/A”, the date format should YYYY-MM-DD Example:2020-10-16 |
Settlement Bank No. | settlement_bank_number | string(128) | No | Settlement bank account number (settlement bank information) Example:555588889999 |
+Business information | business | object | No | Business information, the detail is listed below |
+ Director information | director | object | No | Director information, The detail is listed below |
+ Principal information | principal | object | No | Principal information, The detail is listed below |
Name | Description | Solution |
---|---|---|
PARAM_ERROR | Req param error | For the specific parameter format, please see the relevant document. |
INVALID_REQUEST | Invaild request | Check your program based on the error message returned by the API. |
SYSTEM_ERROR | System error please try again | System error. Re-initiate with the original parameters. |
MCH_NOT_EXISTS | The sub_mchid Has not existed | After the Sub-merchant ID has been created for 5 minutes, call the Query API to confirm whether the creation is successful. If the sub-merchant does not exist, apply again. |
Customer Service Tel
Business Development
9:00-18:00
Monday-Friday GMT+8
Technical Support
WeChat Pay Global
ICP证